import QtQuick 2.0
import "../common"

Background {
    width: 480
    height: 80

    ListView{
        anchors.fill: parent
        anchors.margins: 20

        clip: true   //切割
        model: 100
        orientation: ListView.Horizontal  //方向
 //       layoutDirection: Qt.RightToLeft  //改变数据的方向
        delegate: numberDelegate   //代理
        spacing: 5
    }

    Component {
        id: numberDelegate

        GreenBox {
            width: 40
            height: 40
            text: index
        }
    }
}
